<?php

/**
 * 平台接口
 */

////账户开通管理
//$router->post('account/index', 'AccountController@getIndex');
//$router->post('account/option', 'AccountController@getOption');
//$router->post('account/add', 'AccountController@add');
//$router->post('account/toauth', 'AccountController@setAuth');
//$router->post('account/todel', 'AccountController@setDel');
////卡号绑定审核
//$router->post('bank/list', 'AccountController@bankList');
//$router->post('bank/toauth', 'AccountController@bankAuth');
//用户管理【个人+企业】
$router->post('account/user/index', 'AccountController@getUserIndex');
$router->post('account/company/index', 'AccountController@getCompanyIndex');
$router->post('account/option', 'AccountController@getOption');
$router->post('account/upload', 'AccountController@upload');
$router->post('account/user/add', 'AccountController@addUser');
$router->post('account/user/modify', 'AccountController@modifyUser');
$router->post('account/agent/index', 'AccountController@getAgentIndex');
$router->post('account/agent/add', 'AccountController@addAgent');
$router->post('account/agent/modify', 'AccountController@modifyAgent');
$router->post('account/enable', 'AccountController@setEnable');
$router->post('account/del', 'AccountController@setDel');

//项目管理
$router->group(['prefix'=>'item'], function () use ($router) {
    //项目模板
    $router->post('tmp/index', 'ItemTmpController@index');
    $router->post('tmp/zip/upload', 'ItemTmpController@zipUpload');
    //项目用户
    $router->post('user/index', 'ItemUserController@index');
});
